"use client"
import { useState } from 'react'
import { observer } from 'mobx-react'
import counter from "@/app/store/counter";
import { Button } from 'antd'
const Page = () => {
  const [name, setName] = useState('Next')
  const handle = () => {
    // console.log('1111')
    setName('next react')
  }
  return (
    <>
      { counter.count }
      <div onClick={handle}>{ name }</div>
      <Button onClick={counter.add}>clickAdd</Button>
    </>
  )
}

export default observer(Page)